// 
<!--
var speed=25;
var offset= 5;
var delay=5000;
var cur = 0;
var roll_interval;
var pasue_timeout;
function roll(){
now_pos = roll_layer.scrollTop;
roll_layer.scrollTop+=offset;
if (now_pos==roll_layer.scrollTop){
pasue('stop');
}
}
function stop_roll(){
window.clearInterval(roll_interval);
}
function start_roll(){
roll_layer.scrollTop = 0;
roll_interval = window.setInterval('roll()',speed);
}
function text_switch(){
roll_layer.innerHTML=roll_content[cur].innerHTML;
if (++cur==roll_content.length){
cur=0;
}
roll_layer.innerHTML+=roll_content[cur].innerHTML;
}
function pasue(act){
if (act=='stop'){
stop_roll();
pasue('timeout');
}else if(act=='timeout'){
pasue_timeout = window.setTimeout("pasue('switch');",delay);
}else if(act=='switch'){
text_switch();
start_roll();
}
}
function start(){
text_switch();
cur=0;
pasue("timeout");
}
start();
//-->